{include file="public_iframe:head"}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>会员列表</h5>

                    <div class="ibox-tools" style="margin-top: -9px;">
                        <a href="javascript:location.reload();" class="btn btn-primary"><i class="fa fa-refresh"></i> 刷新</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                        <h4 class="example-title"></h4>
                        <a class="btn btn-primary" href="{:url('Member/edit_level')}">添加内容</a>
                        <br/>

                        </div>
                <!--         <form class="form-inline" action="" method="get">
                            <div class="col-sm-9">
                                <div class="input-group col-sm-3  pull-right">
                                    <input type="text" name="keyword" value="{$keyword?$keyword:'';}" placeholder="昵称或手机关键词" class="input-sm form-control">
			                                    <span class="input-group-btn">
			                                      <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>
			                                    </span>
                                </div>
                            </div>
                        </form> -->
                    </div>

                    <br />

                    <div class="table-responsive">
                        <form action="__URL__/operate" method="post" id="operate_form">
                            <table class="table table-bordered table-hover"
                                   id="categoryTable">
                                <thead>
                                <tr class="active">
                               
                                    <th height="40">编号</th>
                                    <th>图片</th>
                                    <th>会员等级</th>
                                    <th>会员价格</th>
                                    <th>会员规则</th>
                                    <th>每日接任务数量</th>
                                    <th width="140">创建时间</th>
                                    <th width="80">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="level" id="vo"}
                                    <tr>
                                    
                                        <td>{$vo['id']}</td>
                                        <td>

                                            <img alt="img_url" style="width:50px;height:50px;" class="img-circle" src="{$vo.img_url}"></td>
                                        <td>{if condition="$vo['level'] eq 1"}普通会员{else/}高级会员{/if}</td>
                                        <td>{if condition="$vo['price']"}{$vo['price']}{else/}暂无{/if}</td>
                                        <td>
                                            {if condition="$vo['details']"}
                                                {$vo['details']}
                                                {else/}
                                                暂无
                                            {/if}
                                        </td>
                                        <td>{$vo.task_num}</td>
                                        <td>{$vo['created_at']|date="Y-m-d H:i:s",###}</td>
                                        <td class="center" width="140">
                                            <a href="{:url('Member/edit_level',array('id'=>$vo['id']))}" class="btn btn-primary">编辑</a>
                                            <a href="{:url('Member/member_info',array('id'=>$vo['id']))}" class="btn btn-primary">删除</a>
                                        </td>
                                    </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                        <div class="col-sm-12" style="padding:0px;">
                            <ul class="pagination  pull-right">
                              
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

</body>

</html>